package com.katydid.domain;

import java.io.Serializable;
import javax.persistence.*;

/**
 * Entity implementation class for Entity: NoteImage
 *
 */
@Entity
@Table(name="note_image")
public class NoteImage implements Serializable {
	private static final long serialVersionUID = 1L;

	@SequenceGenerator(name = "img_sequence_generator", sequenceName = "note_sequence")
	@Id
	@Column(name = "note_image_id")
	private long id;
	
	@ManyToOne
	@JoinColumn(name="note_id")
	private Note note;
	
	@Lob
	@Column(nullable = false)
	private byte[] image;
	
	public NoteImage() {
		super();
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public Note getNote() {
		return note;
	}

	public void setNote(Note note) {
		this.note = note;
	}

	public byte[] getImage() {
		return image;
	}

	public void setImage(byte[] image) {
		this.image = image;
	}
   
}
